package com.education.platform.dto.auth;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;

/**
 * 短信验证码DTO
 */
@Data
public class SmsCodeDTO {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String mobile;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空")
    @Pattern(regexp = "^(REGISTER|LOGIN|RESET_PASSWORD|BIND_MOBILE)$", message = "类型不正确")
    private String type;
}
